package io.github.springsongs.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.github.springsongs.entities.Payment;
import io.github.springsongs.mapper.PaymentMapper;
import io.github.springsongs.service.IPaymentService;
import org.springframework.stereotype.Service;

@Service
public class PaymentServiceImpl extends ServiceImpl<PaymentMapper, Payment> implements IPaymentService {
    @Override
    public Long create(Payment payment) {
         save(payment);
        return payment.getId();
    }

    @Override
    public Payment getPaymentById(Long id) {
        return getById(id);
    }
}
